{% extends 'app_planning/index.html' %}

{% block app_planning %}
    <h1>{{ action.title }}</h1>
    <p>{{ action.description}}</p>
    <p>{{ action.tags}}</p>
    <ul>
        {% for ts in action.timeslot_set.all %}
            <li>
                {{ ts.get_day_display }}: 
                {{ ts.ini_time }}
                 - {{ ts.end_time }}
                <a href="{% url delete_timeslot ts.id %}" class="close">×</a>
            </li>
        {% endfor %}
        <a href="{% url new_timeslot action.id %}" class="btn btn-primary">Nuevo TimeSlot</a>
    </ul>
{% endblock %}
